package com.management.department.teacherinfosystem.Repository;

import com.management.department.teacherinfosystem.Entity.AcademicAchievementAttachment;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AcademicAchievementAttachmentRepository extends JpaRepository<AcademicAchievementAttachment, Long> {
    
    // 根据学术成果ID查询附件
    List<AcademicAchievementAttachment> findByAchievementId(Long achievementId);
    
    // 根据文件类型查询
    List<AcademicAchievementAttachment> findByFileType(String fileType);
}
